package com.easy.mapper;

import com.easy.bean.Brand;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BrandDao {


    int add(@Param("brand") Brand brand);

    int del(@Param("id") Integer id);

    int edit(@Param("brand") Brand brand);

    Brand one(@Param("id") Integer id);

    List<Brand>  all(@Param("brand") Brand brand);

    int pageCount(@Param("brand") Brand brand);

    List<Brand> page(@Param("brand") Brand brand, @Param("page") Page page);


}
